home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMWindowCollection.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  129 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMWindowCollection.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMWindowCollection_h__
  6. #define __gen_nsIDOMWindowCollection_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMWindowCollection */
  19. #define NS_IDOMWINDOWCOLLECTION_IID_STR "a6cf906f-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMWINDOWCOLLECTION_IID \
  22.   {0xa6cf906f, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMWindowCollection : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMWINDOWCOLLECTION_IID)
  29.  
  30.   /**
  31.  * The nsIDOMWindowCollection interface is an interface for a
  32.  * collection of DOM window objects.
  33.  *
  34.  * @status FROZEN
  35.  */
  36. /**
  37.    * Accessor for the number of windows in this collection.
  38.    */
  39.   /* readonly attribute unsigned long length; */
  40.   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  41.  
  42.   /**
  43.    * Method for accessing an item in this collection by index.
  44.    */
  45.   /* nsIDOMWindow item (in unsigned long index); */
  46.   NS_IMETHOD Item(PRUint32 index, nsIDOMWindow **_retval) = 0;
  47.  
  48.   /**
  49.    * Method for accessing an item in this collection by window name.
  50.    */
  51.   /* nsIDOMWindow namedItem (in DOMString name); */
  52.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMWindow **_retval) = 0;
  53.  
  54. };
  55.  
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIDOMWINDOWCOLLECTION \
  58.   NS_IMETHOD GetLength(PRUint32 *aLength); \
  59.   NS_IMETHOD Item(PRUint32 index, nsIDOMWindow **_retval); \
  60.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMWindow **_retval); 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  63. #define NS_FORWARD_NSIDOMWINDOWCOLLECTION(_to) \
  64.   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  65.   NS_IMETHOD Item(PRUint32 index, nsIDOMWindow **_retval) { return _to Item(index, _retval); } \
  66.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMWindow **_retval) { return _to NamedItem(name, _retval); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIDOMWINDOWCOLLECTION(_to) \
  70.   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  71.   NS_IMETHOD Item(PRUint32 index, nsIDOMWindow **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  72.   NS_IMETHOD NamedItem(const nsAString & name, nsIDOMWindow **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NamedItem(name, _retval); } 
  73.  
  74. #if 0
  75. /* Use the code below as a template for the implementation class for this interface. */
  76.  
  77. /* Header file */
  78. class nsDOMWindowCollection : public nsIDOMWindowCollection
  79. {
  80. public:
  81.   NS_DECL_ISUPPORTS
  82.   NS_DECL_NSIDOMWINDOWCOLLECTION
  83.  
  84.   nsDOMWindowCollection();
  85.  
  86. private:
  87.   ~nsDOMWindowCollection();
  88.  
  89. protected:
  90.   /* additional members */
  91. };
  92.  
  93. /* Implementation file */
  94. NS_IMPL_ISUPPORTS1(nsDOMWindowCollection, nsIDOMWindowCollection)
  95.  
  96. nsDOMWindowCollection::nsDOMWindowCollection()
  97. {
  98.   /* member initializers and constructor code */
  99. }
  100.  
  101. nsDOMWindowCollection::~nsDOMWindowCollection()
  102. {
  103.   /* destructor code */
  104. }
  105.  
  106. /* readonly attribute unsigned long length; */
  107. NS_IMETHODIMP nsDOMWindowCollection::GetLength(PRUint32 *aLength)
  108. {
  109.     return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111.  
  112. /* nsIDOMWindow item (in unsigned long index); */
  113. NS_IMETHODIMP nsDOMWindowCollection::Item(PRUint32 index, nsIDOMWindow **_retval)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* nsIDOMWindow namedItem (in DOMString name); */
  119. NS_IMETHODIMP nsDOMWindowCollection::NamedItem(const nsAString & name, nsIDOMWindow **_retval)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123.  
  124. /* End of implementation class template. */
  125. #endif
  126.  
  127.  
  128. #endif /* __gen_nsIDOMWindowCollection_h__ */
  129.